package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._24QueryMachineFillResult;
import com.zxq.uart.frame.encoder._24QueryMachineFillCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _24QueryMachineFillController extends PlatformExchange<_24QueryMachineFillCmd, _24QueryMachineFillResult> {

    @Override
    public Integer getCmd() {
        return 0x24;
    }

    @PostMapping("exchange/24")
    @Override
    public ResultVO<_24QueryMachineFillResult> exchange(@RequestBody _24QueryMachineFillCmd order) {
        return super.exchange(order);
    }

    @Override
    public _24QueryMachineFillResult getResult() {
        _24QueryMachineFillResult queryMachineFillResult  = new _24QueryMachineFillResult();
        return queryMachineFillResult;
    }

}
